checkout: Save errno when re-throwing
authorColin Walters <walters@verbum.org>
Thu, 26 Aug 2021 19:16:37 +0000 (15:16 -0400)
committerColin Walters <walters@verbum.org>
Thu, 26 Aug 2021 19:17:36 +0000 (15:17 -0400)
commit87d115706eed52069e54785b87108c97a44a0343
tree15d417907a36a408bf4ed49547803ecd18d85f1e
parent28a079291910d9772fc3b19820d0cb0d946c095f
checkout: Save errno when re-throwing

I was seeing an `EPERM`  here which was confusing.
It turned out the real error was `EEXIST`.

Since we're referring to the original error, but we do a
lot of computation in the middle, we need to save errno.
src/libostree/ostree-repo-checkout.c